﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="StockWarnAdd.aspx.cs" MasterPageFile="~/Site1.master"  Inherits="WebApplication1.InfoManagement.StockWarnAdd" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div style="width: 100%; text-align: left; height: 601px;">
            <br />
            <br />
        <div style="width: 60%; border: solid 1px black; margin: 0 auto; height: 537px;">
            <p></p> 
            <p>
            代　　码：<asp:TextBox ID="Tb_ToolCode" runat="server"></asp:TextBox> 
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                    ErrorMessage="*" ControlToValidate="Tb_ToolCode" ValidationGroup="VGroup1"></asp:RequiredFieldValidator>
                </p>
            <p>
                预警数量：<asp:TextBox 
                ID="Tb_Amount_Warn" runat="server"></asp:TextBox>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                    ErrorMessage="*" ControlToValidate="Tb_Amount_Warn" 
                    ValidationGroup="VGroup1" ValidationExpression="^[0-9]*$"></asp:RegularExpressionValidator>
            　　<asp:Button ID="Btn_Add" runat="server" Text="+" ValidationGroup="VGroup1" 
                    onclick="Btn_Add_Click" />
            </p>
            <hr/>
            <asp:GridView ID="GridView1" Width="100%"  runat="server" 
                AutoGenerateColumns="False" BackColor="White" BorderColor="White" 
                BorderStyle="Ridge" BorderWidth="2px" CellPadding="3" CellSpacing="1" 
                GridLines="None" >
                <RowStyle BackColor="#DEDFDE" ForeColor="Black" />
                <Columns>
                    <asp:BoundField DataField="Tool_Code" HeaderText="代码" />
                    <asp:BoundField DataField="Amount_Warn" HeaderText="预警数量" />
                </Columns>
                <FooterStyle BackColor="#C6C3C6" ForeColor="Black" />
                <PagerStyle BackColor="#C6C3C6" ForeColor="Black" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#9471DE" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#4A3C8C" Font-Bold="True" ForeColor="#E7E7FF" />
            </asp:GridView>
            <p align="center">
                &nbsp;</p>
            <p align="center">
                <asp:Button ID="Btn_Insert" runat="server" Text="添　加" 
                    onclick="Btn_Insert_Click" />
                　　　　　　<asp:Button ID="Btn_Cancel" runat="server" Text="取　消" 
                    onclick="Btn_Cancel_Click" />
            </p>
        </div>
    </div>
    </form>
</body>
</html>
</asp:Content>